import { Checkbox } from 'antd';

const FormCheckBox: React.FC<IBuildForm.Params> = (props) => {
    const { item } = props;
    const options = (item.value as IBuildForm.IItemvalue).text.split(',');
    return (
        <Checkbox.Group {...props}>
            {options.map((item: string) => (
                <Checkbox
                    value={item}
                    key={item}
                    style={{ lineHeight: '32px' }}
                >
                    {item}
                </Checkbox>
            ))}
        </Checkbox.Group>
    );
};
export default FormCheckBox;
